<?php
/**
 * Rubric
 * Created on 01.11.2009 20:09:17
 * @author nikolai
 */
class Rubric {
    var $root;
    var $logger;

    var $rubricName;
    var $subrubrics;
    var $subRubricsCount;

    function Rubric($root, $name) {
        $this->root = $root;
        $this->logger = new Logger($root, "Rubric");
        $this->rubricName = $name;
        $this->subrubrics = array();
        $this->subRubricsCount = 0;
    }

    function addSubrubric($subrubName) {
        $this->subrubrics[$this->subRubricsCount++] = $subrubName;
    }

    function getSubrubrics() {
        return $this->subrubrics;
    }

    function getName() {
        return $this->rubricName;
    }
}
?>
